package com.qf.service.impl;

import com.qf.mapper.DtsUserMapper;
import com.qf.service.DtsUserService;
import com.qf.vo.DayStatis;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class DtsUserServiceImpl implements DtsUserService {

    @Autowired
    private DtsUserMapper dtsUserMapper;
    @Override
    public Integer findCount() {
        return dtsUserMapper.selectCount(null);
    }

    /**
     * 日期对应的订单总额用户数
     * @param statisDaysRang
     * @return
     */
    @Override
    public List<DayStatis> findUserDayStatis(int statisDaysRang) {
        return dtsUserMapper.findUserDayStatis(statisDaysRang);
    }
}
